//
//  AXYxtyTableViewCell.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/10/12.
//  Copyright © 2018年 tzhg. All rights reserved.
//

#import "AXYxtyDetailsTableViewCell.h"
#import "UIView+SDAutoLayout.h"
#import "ZXCategories.h"
#import "UITableView+SDAutoTableViewCellHeight.h"

@interface AXYxtyDetailsTableViewCell ()

@end

@implementation AXYxtyDetailsTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self creatView];
        [self setlayout];
    }
    return self;
}

- (void)creatView {
    self.img = [[UIImageView alloc]init];
    /** 图片比例切 */
    self.img.contentMode =UIViewContentModeScaleAspectFill;
    self.img.clipsToBounds=YES;//
    [self.contentView addSubview:self.img];
}

- (void)setlayout {
    
    self.img.sd_layout
    .leftSpaceToView(self.contentView, 0)
    .topSpaceToView(self.contentView, 0)
    .widthIs(SCREEN_WIDTH)
    .heightIs(500);
    /** cell 自适应第一步 */
    [self setupAutoHeightWithBottomView:self.img bottomMargin:0];
    
}


@end
